package com.account.web.dto.system;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 渠道用户重置密码
 */
public class ResetPasswordChannelUserDto implements Serializable {

    private static final long serialVersionUID = -27579074110925636L;

    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotNull(message = "密码不能为空")
    @Size(min = 5, max = 20, message = "密码长度必须介于 5 和 20 之间")
    private String password;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
